package com.company;

public class max {
    public static void main(String[] args) {
        max.max(30,40);
    }
    public static int max(int num1, int num2) {
        int result;
        if(num1 > num2) {
            result = num1;
        }else {
            result = num2;
        }
        System.out.println(result);
        return result;
    }
}
